home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-14 / Vol E-14.iso / games / reelgold.swf / scripts / DefineSprite_173 / frame_1 / DoAction.as
Text File  |  2014-03-11  |  341b  |  23 lines

  1. function fScored(tScore, point)
  2. {
  3.    pScore = tScore;
  4.    _X = point.x;
  5.    _Y = point.y - 15;
  6.    pActive = true;
  7. }
  8. pScore = 0;
  9. pActive = false;
  10. this.onEnterFrame = function()
  11. {
  12.    if(pActive == true)
  13.    {
  14.       _Y = _Y - 2;
  15.       if(_Y < -20)
  16.       {
  17.          _Y = -20;
  18.          pActive = false;
  19.       }
  20.    }
  21. };
  22. stop();
  23.